<template>
<div class="get">
          slug: <input type="text" v-model="cateObj.slug"> <br>
        name: <input type="text" v-model="cateObj.name">
        <button @click='Addcate'>post请求示例</button>
</div>
</template>
<script>
// import Vue from 'vue'
import { Addcate } from '@/components/js/myaxios.js'
// import axios from 'axios'
export default {
  data () {
    return {
      cateObj: {
        slug: '',
        name: ''
      }
    }
  },
  methods: {
    Addcate () {
      Addcate({
        name: '66633', slug: '45633' })
        .then((res) => {
          console.log(res)
        })
        .catch((err) => {
          console.log(err)
        })
    }
  }

}
</script>
<style less>

</style>
